package org.ruiyichen.guizhou.agr.bean;

/**
 * 作者：Administrator
 * 邮箱：wutian8489@foxmail.com
 */
public class Response<D, T> {

    protected int code;

    protected String msg;

    protected D data;

    protected T rows;

    protected int total;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public D getData() {
        return data;
    }

    public void setData(D data) {
        this.data = data;
    }

    public T getRows() {
        return rows;
    }

    public void setRows(T rows) {
        this.rows = rows;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean isSuccess() {
        return 200 == code;
    }
}
